import request from '../../../utils/network/request.js'


const userApi = {
	register : (data) => request.get('api/register',data),
	login : (data) => request.get('api/login',data),
	queryToken: (data) => request.get('api/queryToken',data),
	queryAllUserInfo:(data) => request.get('api/getUserInfo',data),
	sendUserArticle:(data) => request.post('api/setUserArticle',data),
	sendImageInfo:(data) => request.get('api/insertImageInfo',data),
	getArticle:(data)=> request.get('api/getArticle',data),
	searchArticle:(data)=> request.get('api/searchArticle',data),
	getArticleInfo:(data)=> request.get('api/userGetArticle',data),
	insertComment:(data)=> request.post('api/setArticleComments',data)
}



export default userApi